<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 编写一个函数，计算三个数字的大小，按从小到大顺序输出
        function num(a, b, c) {
            // 假设：a<b<c 如果不成立则a<b，或a<c b<c 
            // 设置个中介转换 
            var t = 0
            if (a > b) {
                t = a;
                a = b;
                b = t;


            }
            if (a > c) {
                t = c;
                c = a;
                a = t;
            }
            if (b > c) {
                t = c;
                c = b;
                b = t;

            }
            console.log(a, b, c)
        }
        num(234, 54, 77);
    </script>
</body>

</html>